package com.douqu.game.core.e;

/**
 * 拍卖品的来源
 * @author: miralce.
 * Description:
 * Date: 2018/5/8 0008 下午 4:33
 * Huan Yu Copyright (c) 2017 All Rights Reserved.
 */
public enum E_AuctionSource implements BaseEnum {
    AUCTION_SOURCE_CAMP(1,"阵营战"),
    AUCTION_SOURCE_BOSS(2,"BOSS副本")
    ;

    int code;
    String msg;

    E_AuctionSource(int code,String msg){
        this.code = code;
        this.msg = msg;
    }

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }

    public static String getMsgByCode(int code){
        for (E_AuctionSource source:E_AuctionSource.values()){
            if(source.code==code){
                return source.msg;
            }
        }
        return "";
    }
}
